{
	template:`
    <m-page @back="back" :title="param.title">
        <m-top></m-top>
        <m-title>{{param.title}}
			<template #action>
			</template>
        </m-title>
		<m-top></m-top>
		<m-list ref="list" :url="url" :params="params" :bottom="0" :search="search">
			<template #item="{item}">
				<m-card join>
					<div class="flex padding-sm align-center">
                        <div class="cu-tag radius" :class="'bg-'+item.type.color">{{item.type.name}}</div>
                        <div class="flex-sub padding-lr-sm">
                            <div>
                                <div v-if="item.store.oid" class="cu-tag radius sm" :class="'bg-'+item.store.color">{{item.store.name}}</div>
                                {{item.title}}
                            </div>
                            <div class="text-sm text-gray">
                                原价{{formatAmount(item.price)}}元
                                <span v-if="item.discount" class="padding-bottom-xs text-blue">优惠{{item.discount}}%</span>
                            </div>
                        </div>
                        <div class="text-right text-sm">
                            <div><span class="text-red">{{formatAmount(item.price-item.price*(item.discount||0)/100)}}</span>元</div>
                            <div v-if="selectOid==item.oid" class="cu-tag radius bg-blue light">已选</div>
                            <m-button v-else @click="selectServeGoods(item)" size="sm">选择</m-button>
                        </div>
					</div>
                    <div v-if="item.description" class="padding-sm solid-top text-sm">
                        {{item.description}}
                    </div>
				</m-card>
			</template>
		</m-list>
    </m-page>
	`,
	props: ['param','parentVue'],
	data:function(){
		return {
            url:'action/base/serveGoods/getSelectList',
            params:{},
            search:[
                {title:'标题',name:'title@like',input:'text'}
            ],
            selectOid:''
		};
	},
	mounted(){
	    this.selectOid=this.param.selectOid;
	},
	methods:{
	    selectServeGoods:function(model){
	        this.back(true,model);
	    }
	}
}